/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-12-23     louis       the first version
 */
#ifndef MODULE_MT25Q_MT25Q_H_
#define MODULE_MT25Q_MT25Q_H_

#include <rtthread.h>
#include <rtdevice.h>
#include <sfud.h>
#include <spi_flash.h>
#include <spi_flash_sfud.h>
#include <drv_spi.h>
#define size_c 20
#define config_path "/config.ini"
#define timing_path "/timing.txt"

void MT25Q_init(void);
int MT25Q_readKeyValue(const char* section,const char* key);
void MT25Q_writeKeyValue(const char* section,const char* key,int value);
void MT25Q_readTest(void);
void MT25Q_writeTest(void);
void MT25Q_readJump(int fd,int size);

#endif /* MODULE_MT25Q_MT25Q_H_ */
